
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #001940 0%, #002655 100%);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 添加星空背景 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -3;
}

/* 创建星星 */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
}

/* 创建流星效果 */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,255,255,0.8), transparent);
    transform: rotate(-45deg);
    animation: shooting var(--duration) linear infinite;
    animation-delay: var(--delay);
    opacity: 0;
}

/* 添加科技线条 */
.tech-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.3;
}

.tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.2), transparent);
    height: 1px;
    width: 100%;
    animation: techMove 8s linear infinite;
}

/* 修改行星部分 */
.planets {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.planet {
    position: absolute;
    border-radius: 50%;
    box-shadow: inset -25px -25px 40px rgba(0,0,0,.5);
    background-image:
            radial-gradient(circle at 30% 30%,
            rgba(0,255,255,0.1),
            rgba(0,149,255,0.2),
            rgba(0,64,255,0.3)
            );
    animation: rotate 20s linear infinite;
    opacity: 0.6;
}

/* 为每个行星设置不同的大小、位置和动画 */
.planet:nth-child(1) { width: 100px; height: 100px; top: 10%; right: 15%; animation-duration: 20s; }
.planet:nth-child(2) { width: 60px; height: 60px; bottom: 20%; left: 10%; animation-duration: 15s; }
.planet:nth-child(3) { width: 40px; height: 40px; top: 30%; left: 25%; animation-duration: 18s; }
.planet:nth-child(4) { width: 80px; height: 80px; bottom: 35%; right: 20%; animation-duration: 22s; }
.planet:nth-child(5) { width: 50px; height: 50px; top: 45%; right: 30%; animation-duration: 17s; }
.planet:nth-child(6) { width: 70px; height: 70px; bottom: 15%; left: 35%; animation-duration: 19s; }
.planet:nth-child(7) { width: 45px; height: 45px; top: 60%; left: 15%; animation-duration: 21s; }
.planet:nth-child(8) { width: 55px; height: 55px; top: 25%; right: 40%; animation-duration: 16s; }
.planet:nth-child(9) { width: 65px; height: 65px; bottom: 40%; left: 20%; animation-duration: 23s; }
.planet:nth-child(10) { width: 35px; height: 35px; top: 70%; right: 25%; animation-duration: 14s; }
.planet:nth-child(11) { width: 75px; height: 75px; bottom: 25%; right: 35%; animation-duration: 24s; }
.planet:nth-child(12) { width: 45px; height: 45px; top: 15%; left: 40%; animation-duration: 16s; }
.planet:nth-child(13) { width: 85px; height: 85px; bottom: 45%; left: 30%; animation-duration: 25s; }
.planet:nth-child(14) { width: 50px; height: 50px; top: 55%; right: 15%; animation-duration: 18s; }
.planet:nth-child(15) { width: 60px; height: 60px; bottom: 30%; right: 45%; animation-duration: 20s; }
.planet:nth-child(16) { width: 40px; height: 40px; top: 40%; left: 45%; animation-duration: 17s; }
.planet:nth-child(17) { width: 70px; height: 70px; bottom: 50%; left: 25%; animation-duration: 22s; }
.planet:nth-child(18) { width: 55px; height: 55px; top: 20%; right: 50%; animation-duration: 19s; }
.planet:nth-child(19) { width: 45px; height: 45px; bottom: 35%; right: 30%; animation-duration: 21s; }
.planet:nth-child(20) { width: 65px; height: 65px; top: 65%; left: 35%; animation-duration: 23s; }

/* 添加行星发光效果 */
.planet::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    animation: planetGlow 4s ease-in-out infinite alternate;
}

@keyframes planetGlow {
    from {
        opacity: 0.4;
        transform: scale(1);
    }
    to {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* 动画定义 */
@keyframes shooting {
    0% {
        transform: translateX(-100%) translateY(0) rotate(-45deg);
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateX(200%) translateY(-200%) rotate(-45deg);
        opacity: 0;
    }
}

@keyframes techMove {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 修改登录容器样式 */
.login-container {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg,
    rgba(2, 11, 39, 0.98) 0%,
    rgba(4, 24, 65, 0.98) 50%,
    rgba(6, 36, 89, 0.98) 100%
    );
    width: 400px;
    padding: 40px;
    border: 2px solid transparent;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 149, 255, 0.2);
    position: relative;
    z-index: 1;
    animation: borderAnimation 8s linear infinite;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* 修改边框动画效果 */
@keyframes borderAnimation {
    0% {
        border-image: linear-gradient(45deg,
        rgba(0, 255, 255, 0.6),
        rgba(0, 98, 255, 0.6),
        rgba(0, 255, 255, 0.6),
        rgba(0, 98, 255, 0.6)
        ) 1;
    }
    50% {
        border-image: linear-gradient(225deg,
        rgba(0, 255, 255, 0.6),
        rgba(0, 98, 255, 0.6),
        rgba(0, 255, 255, 0.6),
        rgba(0, 98, 255, 0.6)
        ) 1;
    }
    100% {
        border-image: linear-gradient(45deg,
        rgba(0, 255, 255, 0.6),
        rgba(0, 98, 255, 0.6),
        rgba(0, 255, 255, 0.6),
        rgba(0, 98, 255, 0.6)
        ) 1;
    }
}

/* 修改标题样式 */
.login-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

/* 添加标题装饰线 */
.login-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg,
    transparent,
    #00ffff,
    transparent
    );
}

.login-title {
    font-size: 24px;
    color: #00ffff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* 添加标题图标 */
.login-title i {
    font-size: 28px;
    background: linear-gradient(135deg, #00ffff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(0, 255, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.5));
    }
}

.login-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 表单样式 */
.el-form-item__label {
    color: rgba(255, 255, 255, 0.9) !important;
}

.el-input__inner {
    background: linear-gradient(90deg,
    rgba(2, 11, 39, 0.8) 0%,
    rgba(4, 24, 65, 0.8) 100%
    ) !important;
    border: 1px solid rgba(0, 149, 255, 0.2) !important;
    color: #fff !important;
    height: 45px;
    line-height: 45px;
    transition: all 0.3s ease;
}

.el-input__inner:focus {
    background: linear-gradient(90deg,
    rgba(4, 24, 65, 0.9) 0%,
    rgba(6, 36, 89, 0.9) 100%
    ) !important;
    border-color: rgba(0, 255, 255, 0.3) !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.el-input__prefix {
    color: rgba(0, 255, 255, 0.5);
}

/* 登录按钮样式 */
.login-button {
    width: 100%;
    height: 45px;
    background: linear-gradient(90deg, #0066ff, #00ffff) !important;
    border: none !important;
    font-size: 16px;
    letter-spacing: 2px;
    transition: all 0.3s !important;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

/* 添加动画效果 */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(0, 149, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 149, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 149, 255, 0.1);
    }
}

.login-container {
    animation: glow 3s infinite;
}

/* 记住密码样式 */
.el-checkbox__label {
    color: rgba(255, 255, 255, 0.7) !important;
}

.el-checkbox__input.is-checked .el-checkbox__inner {
    background-color: #00ffff !important;
    border-color: #00ffff !important;
}

.forgot-password {
    color: rgba(0, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    float: right;
    transition: all 0.3s;
}

.forgot-password:hover {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}


    /* 修改验证码容器样式 */
.captcha-container {
    height: 45px;
    background: linear-gradient(90deg,
    rgba(2, 11, 39, 0.8) 0%,
    rgba(4, 24, 65, 0.8) 100%
    );
    border: 1px solid rgba(0, 149, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 149, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.captcha-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    border-radius: 12px;
}

/* 添加验证码图片悬停效果 */
.captcha-container:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

/* 添加验证码点击效果 */
.captcha-container:active {
    transform: scale(0.98);
}

/* 优化验证码输入框样式 */
.el-form-item--captcha .el-input {
    width: 30%;
}

/* 确保验证码容器和输入框高度一致 */
.el-form-item--captcha .el-input__inner,
.captcha-container {
    height: 45px;
    line-height: 45px;
}

/* 添加炫酷动画效果 */
@keyframes borderGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}


/* 单选按钮组样式 */
.el-radio {
    margin-right: 20px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.el-radio__input.is-checked .el-radio__inner {
    border-color: #00ffff !important;
    background: #00ffff !important;
}

.el-radio__input.is-checked + .el-radio__label {
    color: #00ffff !important;
}

.el-radio__inner {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.el-radio__inner::after {
    width: 6px !important;
    height: 6px !important;
    background-color: #041B4A !important;
}

.el-radio:hover:not(.is-disabled) .el-radio__inner {
    border-color: #00ffff !important;
}

/* 流星群容器样式 */
.shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Safari动画定义 */
@-webkit-keyframes rotate {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}

@-webkit-keyframes shooting {
    0% {
        -webkit-transform: translateX(-100%) translateY(0) rotate(-45deg);
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    100% {
        -webkit-transform: translateX(200%) translateY(-200%) rotate(-45deg);
        opacity: 0;
    }
}

@-webkit-keyframes planetGlow {
    from {
        opacity: 0.4;
        -webkit-transform: scale(1);
    }
    to {
        opacity: 0.6;
        -webkit-transform: scale(1.1);
    }
}

/* 优化渲染性能 */
.stars, .planets, .shooting-stars, .tech-lines {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* Safari特定样式修复 */
@supports (-webkit-backdrop-filter: none) {
    .login-container {
        background: rgba(2, 11, 39, 0.95);
    }
}

/* 修复Safari下的模糊效果 */
@supports not (-webkit-backdrop-filter: blur(10px)) {
    .login-container {
        background: rgba(2, 11, 39, 0.98);
    }
}